package com.workman.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.workman.bean.AuthorizationUser;
import com.workman.model.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    public Map<String,String> selectUserByName(String userNm);

    public IPage<User> selectUserByPage(Page page,  QueryWrapper queryWrapper);

    public void insertUser(User user);

    public void updateUserById(User user);

    public void updatePwdById(User user);

    public void deleteUserById(User user);

    public User selectUserByLoginName(String loginName);

    public User selectUserById(Long id);

    public AuthorizationUser getAuthorizationInfo(String loginName);


}
